package com.api.shopapi.service;

import com.api.shopapi.entity.Train;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface TrainService {

    int insert(Train train);

    int update(Train train);

    Train getByTrainCode(String trainCode);

    PageInfo<Train> getPageList(int pageIndex, int pageSize, String governmentCode, String title,
                                int status, String startTime, String endTime);


    PageInfo<Train> pageByGovCode(int pageIndex, int pageSize, String governmentCode);


}
